package com.mjw.tender.api;

import com.mjw.tender.domain.Article;
import com.mjw.tender.domain.Favourite;

import java.util.List;

public interface ArticleService {
    /**
     * 按传入条件进行分页查找
     * @param article 条件设置进该对象
     * @param currPage 当前页
     * @param limit   条数
     * @return
     */
    List<Article> selectListByArticle(Article article,Integer currPage,Integer limit);

    /**
     * 
     * @param id
     * @return
     */
    public Article read(Long id);


    int update(Article article);

    List<Article> getLikeArticle(Long userId);

    List<Article> getCollectArticle(Long userId);

    List<Article> getHotBrowseList(Integer num);

    Article get(Long articleId);

    Long add(Article article);
}
